<?php
    include_once "fb/fbmain.php";

    if ($user){
        if (isset($_REQUEST['status'])) {
            try {
                $status = htmlentities($_REQUEST['status'], ENT_QUOTES) . "Check It Out: http://google.com";
                $statusUpdate = $facebook->api('/me/feed', 'post', array('message'=> $status, 'cb' => ''));
            } catch (FacebookApiException $e) {
                d($e);
            }
            echo "Status Update Successfull. ";
            exit;
        }
    }
?>